/* 博客详情页特有样式 */

/* 调整hero区域 */
.hero-detail {
  padding: 160px 32px 60px;
}

.hero-meta {
  margin-top: 20px;
  font-size: 16px;
}

.hero-meta .post-author {
  float: none;
  display: inline-block;
  margin-right: 20px;
}

.hero-meta .post-date {
  float: none;
  display: inline-block;
  margin-right: 20px;
}

.hero-meta .post-date::before {
  content: "·";
  margin: 0 10px;
}

.hero-meta .post-category {
  display: inline-block;
}

.hero-meta .post-category a {
  color: #ff7675;
  text-decoration: none;
  border: 1px solid #ff7675;
  padding: 3px 10px;
  border-radius: 15px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.hero-meta .post-category a:hover {
  background: #ff7675;
  color: #fff;
}

/* 博客内容区域布局 */
.blog-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px;
  overflow: hidden;
}

.main-content {
  width: 68%;
  float: left;
  padding-right: 30px;
  box-sizing: border-box;
}

.sidebar {
  width: 32%;
  float: right;
  box-sizing: border-box;
}

/* 特色图片 */
.featured-image {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.featured-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.featured-image:hover img {
  transform: scale(1.02);
}

/* 文章内容样式 */
.article-content {
  background: rgba(24, 25, 31, 0.6);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  margin-bottom: 30px;
}

.article-content p {
  margin-bottom: 20px;
  line-height: 1.8;
  color: #e2e8f0;
  font-size: 17px;
}

.article-content h3 {
  color: #00cec9;
  margin: 30px 0 15px;
  font-size: 22px;
  position: relative;
  padding-bottom: 10px;
}

.article-content h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 2px;
  background: #6c5ce7;
}

/* 引用样式 */
.article-content blockquote {
  border-left: 3px solid #6c5ce7;
  padding: 15px 20px;
  margin: 25px 0;
  background: rgba(108, 92, 231, 0.1);
  border-radius: 0 5px 5px 0;
  font-style: italic;
  color: #b2bec3;
}

/* 文章标签 */
.article-tags {
  margin: 30px 0;
  overflow: hidden;
}

.article-tags span {
  color: #b2bec3;
  float: left;
  margin-right: 10px;
  line-height: 30px;
}

/* 作者信息 */
.author-profile {
  background: rgba(24, 25, 31, 0.6);
  border-radius: 12px;
  padding: 25px;
  margin: 40px 0;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  float: left;
  margin-right: 20px;
  border: 2px solid #00cec9;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h4 {
  color: #f1f1f1;
  margin-bottom: 10px;
  font-size: 18px;
}

.author-info p {
  color: #b2bec3;
  margin: 0;
  line-height: 1.6;
}

/* 相关文章 */
.related-posts {
  margin: 50px 0 30px;
}

.related-posts h3 {
  color: #f1f1f1;
  margin-bottom: 25px;
  font-size: 20px;
  position: relative;
  padding-bottom: 10px;
}

.related-posts h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background: #ff7675;
}

.related-grid {
  display: flex;
  justify-content: space-between;
}

.related-card {
  width: 48%;
  background: rgba(24, 25, 31, 0.6);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.related-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.related-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.related-card h4 {
  padding: 15px;
  font-size: 16px;
}

.related-card h4 a {
  color: #e2e8f0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.related-card:hover h4 a {
  color: #00cec9;
}

/* 侧边栏样式 */
.sidebar-widget {
  background: rgba(24, 25, 31, 0.6);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.sidebar-widget h3 {
  color: #00cec9;
  margin-bottom: 20px;
  font-size: 19px;
  position: relative;
  padding-bottom: 10px;
}

.sidebar-widget h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: #ff7675;
}

/* 热门文章列表 */
.popular-posts {
  list-style: none;
}

.popular-posts li {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.popular-posts li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.popular-posts a {
  text-decoration: none;
  display: flex;
  align-items: center;
  color: #e2e8f0;
  transition: color 0.3s ease;
}

.popular-posts a:hover {
  color: #00cec9;
}

.post-number {
  display: inline-block;
  width: 24px;
  height: 24px;
  background: #6c5ce7;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 24px;
  margin-right: 12px;
  font-size: 12px;
  flex-shrink: 0;
}

/* 分类列表 */
.category-list {
  list-style: none;
}

.category-list li {
  margin-bottom: 12px;
}

.category-list a {
  color: #b2bec3;
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
  padding: 5px 0;
}

.category-list a:hover {
  color: #00cec9;
  padding-left: 5px;
}

.category-list span {
  float: right;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
}

/* 标签云 */
.tag-cloud {
  overflow: hidden;
}

.cloud-tag {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(108, 92, 231, 0.1);
  color: #6c5ce7;
  border: 1px solid rgba(108, 92, 231, 0.3);
  border-radius: 20px;
  font-size: 14px;
  text-decoration: none;
  margin: 0 5px 8px 0;
  transition: all 0.3s ease;
}

.cloud-tag:hover {
  background: #6c5ce7;
  color: #fff;
  transform: translateY(-2px);
}

/* 响应式调整 */
@media (max-width: 992px) {
  .main-content, .sidebar {
    width: 100%;
    float: none;
  }

  .main-content {
    padding-right: 0;
    margin-bottom: 40px;
  }

  .related-card {
    width: 48%;
  }
}

@media (max-width: 768px) {
  .article-content {
    padding: 25px;
  }

  .related-grid {
    flex-direction: column;
  }

  .related-card {
    width: 100%;
    margin-bottom: 20px;
  }

  .related-card:last-child {
    margin-bottom: 0;
  }

  .hero-detail h1 {
    font-size: 32px;
  }
}

@media (max-width: 576px) {
  .blog-content {
    padding: 15px;
  }

  .hero-detail {
    padding: 140px 15px 40px;
  }

  .hero-detail h1 {
    font-size: 26px;
  }

  .author-profile {
    padding: 15px;
  }

  .author-avatar {
    width: 60px;
    height: 60px;
  }
}
